package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 smart_product
 * 
 * @author minwei
 * @date 2022-04-19
 */
public class SmartProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String code;

    /** 任务单ID */
    @Excel(name = "任务单ID")
    private Long taskId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String model;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 库村状态 */
    @Excel(name = "库村状态")
    private String inventoryState;

    /** 检验状态 */
    @Excel(name = "检验状态")
    private String tastState;

    /** 故障状态 */
    @Excel(name = "故障状态")
    private String faultState;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 检验状态 */
    @Excel(name = "生产设备ID")
    private String deviceId;

    /**  查询开始时间   **/
    private Date  startDay;

    /**  查询结束时间   **/
    private Date  endDay;


    /** 故障状态 */
    @Excel(name = "故障状态")
    private String readState;

    /** 产品型号 */
    private SmartProductModel smartProductModel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId() { return taskId; }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInventoryState(String inventoryState) 
    {
        this.inventoryState = inventoryState;
    }

    public String getInventoryState() 
    {
        return inventoryState;
    }
    public void setTastState(String tastState) 
    {
        this.tastState = tastState;
    }

    public String getTastState() 
    {
        return tastState;
    }
    public void setFaultState(String faultState) 
    {
        this.faultState = faultState;
    }

    public String getFaultState() 
    {
        return faultState;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    public String getDeviceId() { return deviceId; }

    public void setDeviceId(String deviceId) { this.deviceId = deviceId; }

    public SmartProductModel getSmartProductModel() { return smartProductModel; }

    public void setSmartProductModel(SmartProductModel smartProductModel) { this.smartProductModel = smartProductModel; }

    public Date getStartDay() { return startDay; }

    public void setStartDay(Date startDay) { this.startDay = startDay; }

    public Date getEndDay() { return endDay; }

    public void setEndDay(Date endDay) { this.endDay = endDay; }

    public String getReadState() {return readState;}

    public void setReadState(String readState) {this.readState = readState;}


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("taskId", getTaskId())
            .append("model", getModel())
            .append("name", getName())
            .append("inventoryState", getInventoryState())
            .append("tastState", getTastState())
            .append("faultState", getFaultState())
            .append("createDate", getCreateDate())
            .append("deviceId", getDeviceId())
            .toString();
    }
}
